package com.yulan.fastkillcourse.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.*;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper=false)
@TableName("t_courses")
@Builder
public class Course {

    @TableId(value = "cid", type = IdType.AUTO)
    private Integer cid;
    private String name;
    private Date startTime;
    private Date endTime;
//    private Integer margin;
    private String teacherName;
    private Integer kind;
//    private Integer hot;
//    private Integer score;
    private Integer timeInterval;
    private String introduction;

//    @Version
//    private Integer version;
}
